home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / maple_st.swf / scripts / DefineSprite_1332 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2010-04-12  |  9.7 KB  |  279 lines

  1. function shopitemnameshow()
  2. {
  3.    if(scrolldragbar._y >= 138)
  4.    {
  5.       shopitemname1 = shopitemnamearray[0];
  6.       shopitemname2 = shopitemnamearray[1];
  7.       shopitemname3 = shopitemnamearray[2];
  8.       shopitemname4 = shopitemnamearray[3];
  9.       shopitemname5 = shopitemnamearray[4];
  10.       itemdessave1 = shopitemintro[0];
  11.       itemdessave2 = shopitemintro[1];
  12.       itemdessave3 = shopitemintro[2];
  13.       itemdessave4 = shopitemintro[3];
  14.       itemdessave5 = shopitemintro[4];
  15.       itemshowgo1 = 2;
  16.       itemshowgo2 = 3;
  17.       itemshowgo3 = 4;
  18.       itemshowgo4 = 5;
  19.       itemshowgo5 = 6;
  20.       itemcostshow1 = itemcostarray[0];
  21.       itemcostshow2 = itemcostarray[1];
  22.       itemcostshow3 = itemcostarray[2];
  23.       itemcostshow4 = itemcostarray[3];
  24.       itemcostshow5 = itemcostarray[4];
  25.    }
  26.    if(scrolldragbar._y >= 153)
  27.    {
  28.       shopitemname1 = shopitemnamearray[1];
  29.       shopitemname2 = shopitemnamearray[2];
  30.       shopitemname3 = shopitemnamearray[3];
  31.       shopitemname4 = shopitemnamearray[4];
  32.       shopitemname5 = shopitemnamearray[5];
  33.       itemdessave1 = shopitemintro[1];
  34.       itemdessave2 = shopitemintro[2];
  35.       itemdessave3 = shopitemintro[3];
  36.       itemdessave4 = shopitemintro[4];
  37.       itemdessave5 = shopitemintro[5];
  38.       itemshowgo1 = 3;
  39.       itemshowgo2 = 4;
  40.       itemshowgo3 = 5;
  41.       itemshowgo4 = 6;
  42.       itemshowgo5 = 7;
  43.       itemcostshow1 = itemcostarray[1];
  44.       itemcostshow2 = itemcostarray[2];
  45.       itemcostshow3 = itemcostarray[3];
  46.       itemcostshow4 = itemcostarray[4];
  47.       itemcostshow5 = itemcostarray[5];
  48.    }
  49.    if(scrolldragbar._y >= 168)
  50.    {
  51.       shopitemname1 = shopitemnamearray[2];
  52.       shopitemname2 = shopitemnamearray[3];
  53.       shopitemname3 = shopitemnamearray[4];
  54.       shopitemname4 = shopitemnamearray[5];
  55.       shopitemname5 = shopitemnamearray[6];
  56.       itemdessave1 = shopitemintro[2];
  57.       itemdessave2 = shopitemintro[3];
  58.       itemdessave3 = shopitemintro[4];
  59.       itemdessave4 = shopitemintro[5];
  60.       itemdessave5 = shopitemintro[6];
  61.       itemshowgo1 = 4;
  62.       itemshowgo2 = 5;
  63.       itemshowgo3 = 6;
  64.       itemshowgo4 = 7;
  65.       itemshowgo5 = 8;
  66.       itemcostshow1 = itemcostarray[2];
  67.       itemcostshow2 = itemcostarray[3];
  68.       itemcostshow3 = itemcostarray[4];
  69.       itemcostshow4 = itemcostarray[5];
  70.       itemcostshow5 = itemcostarray[6];
  71.    }
  72.    if(scrolldragbar._y >= 183)
  73.    {
  74.       shopitemname1 = shopitemnamearray[3];
  75.       shopitemname2 = shopitemnamearray[4];
  76.       shopitemname3 = shopitemnamearray[5];
  77.       shopitemname4 = shopitemnamearray[6];
  78.       shopitemname5 = shopitemnamearray[7];
  79.       itemshowgo1 = 5;
  80.       itemshowgo2 = 6;
  81.       itemshowgo3 = 7;
  82.       itemshowgo4 = 8;
  83.       itemshowgo5 = 9;
  84.       itemdessave1 = shopitemintro[3];
  85.       itemdessave2 = shopitemintro[4];
  86.       itemdessave3 = shopitemintro[5];
  87.       itemdessave4 = shopitemintro[6];
  88.       itemdessave5 = shopitemintro[7];
  89.       itemcostshow1 = itemcostarray[3];
  90.       itemcostshow2 = itemcostarray[4];
  91.       itemcostshow3 = itemcostarray[5];
  92.       itemcostshow4 = itemcostarray[6];
  93.       itemcostshow5 = itemcostarray[7];
  94.    }
  95.    if(scrolldragbar._y >= 198)
  96.    {
  97.       shopitemname1 = shopitemnamearray[4];
  98.       shopitemname2 = shopitemnamearray[5];
  99.       shopitemname3 = shopitemnamearray[6];
  100.       shopitemname4 = shopitemnamearray[7];
  101.       shopitemname5 = shopitemnamearray[8];
  102.       itemshowgo1 = 6;
  103.       itemshowgo2 = 7;
  104.       itemshowgo3 = 8;
  105.       itemshowgo4 = 9;
  106.       itemshowgo5 = 10;
  107.       itemdessave1 = shopitemintro[4];
  108.       itemdessave2 = shopitemintro[5];
  109.       itemdessave3 = shopitemintro[6];
  110.       itemdessave4 = shopitemintro[7];
  111.       itemdessave5 = shopitemintro[8];
  112.       itemcostshow1 = itemcostarray[4];
  113.       itemcostshow2 = itemcostarray[5];
  114.       itemcostshow3 = itemcostarray[6];
  115.       itemcostshow4 = itemcostarray[7];
  116.       itemcostshow5 = itemcostarray[8];
  117.    }
  118.    if(scrolldragbar._y >= 213)
  119.    {
  120.       shopitemname1 = shopitemnamearray[5];
  121.       shopitemname2 = shopitemnamearray[6];
  122.       shopitemname3 = shopitemnamearray[7];
  123.       shopitemname4 = shopitemnamearray[8];
  124.       shopitemname5 = shopitemnamearray[9];
  125.       itemshowgo1 = 7;
  126.       itemshowgo2 = 8;
  127.       itemshowgo3 = 9;
  128.       itemshowgo4 = 10;
  129.       itemshowgo5 = 11;
  130.       itemdessave1 = shopitemintro[5];
  131.       itemdessave2 = shopitemintro[6];
  132.       itemdessave3 = shopitemintro[7];
  133.       itemdessave4 = shopitemintro[8];
  134.       itemdessave5 = shopitemintro[9];
  135.       itemcostshow1 = itemcostarray[5];
  136.       itemcostshow2 = itemcostarray[6];
  137.       itemcostshow3 = itemcostarray[7];
  138.       itemcostshow4 = itemcostarray[8];
  139.       itemcostshow5 = itemcostarray[9];
  140.    }
  141.    if(scrolldragbar._y >= 225)
  142.    {
  143.       shopitemname1 = shopitemnamearray[6];
  144.       shopitemname2 = shopitemnamearray[7];
  145.       shopitemname3 = shopitemnamearray[8];
  146.       shopitemname4 = shopitemnamearray[9];
  147.       shopitemname5 = shopitemnamearray[10];
  148.       itemshowgo1 = 8;
  149.       itemshowgo2 = 9;
  150.       itemshowgo3 = 10;
  151.       itemshowgo4 = 11;
  152.       itemshowgo5 = 12;
  153.       itemdessave1 = shopitemintro[6];
  154.       itemdessave2 = shopitemintro[7];
  155.       itemdessave3 = shopitemintro[8];
  156.       itemdessave4 = shopitemintro[9];
  157.       itemdessave5 = shopitemintro[10];
  158.       itemcostshow1 = itemcostarray[6];
  159.       itemcostshow2 = itemcostarray[7];
  160.       itemcostshow3 = itemcostarray[8];
  161.       itemcostshow4 = itemcostarray[9];
  162.       itemcostshow5 = itemcostarray[10];
  163.    }
  164.    if(scrolldragbar._y >= 240)
  165.    {
  166.       shopitemname1 = shopitemnamearray[7];
  167.       shopitemname2 = shopitemnamearray[8];
  168.       shopitemname3 = shopitemnamearray[9];
  169.       shopitemname4 = shopitemnamearray[10];
  170.       shopitemname5 = shopitemnamearray[11];
  171.       itemshowgo1 = 9;
  172.       itemshowgo2 = 10;
  173.       itemshowgo3 = 11;
  174.       itemshowgo4 = 12;
  175.       itemshowgo5 = 13;
  176.       itemdessave1 = shopitemintro[7];
  177.       itemdessave2 = shopitemintro[8];
  178.       itemdessave3 = shopitemintro[9];
  179.       itemdessave4 = shopitemintro[10];
  180.       itemdessave5 = shopitemintro[11];
  181.       itemcostshow1 = itemcostarray[7];
  182.       itemcostshow2 = itemcostarray[8];
  183.       itemcostshow3 = itemcostarray[9];
  184.       itemcostshow4 = itemcostarray[10];
  185.       itemcostshow5 = itemcostarray[11];
  186.    }
  187.    if(scrolldragbar._y >= 255)
  188.    {
  189.       shopitemname1 = shopitemnamearray[8];
  190.       shopitemname2 = shopitemnamearray[9];
  191.       shopitemname3 = shopitemnamearray[10];
  192.       shopitemname4 = shopitemnamearray[11];
  193.       shopitemname5 = shopitemnamearray[12];
  194.       itemshowgo1 = 10;
  195.       itemshowgo2 = 11;
  196.       itemshowgo3 = 12;
  197.       itemshowgo4 = 13;
  198.       itemshowgo5 = 14;
  199.       itemdessave1 = shopitemintro[8];
  200.       itemdessave2 = shopitemintro[9];
  201.       itemdessave3 = shopitemintro[10];
  202.       itemdessave4 = shopitemintro[11];
  203.       itemdessave5 = shopitemintro[12];
  204.       itemcostshow1 = itemcostarray[8];
  205.       itemcostshow2 = itemcostarray[9];
  206.       itemcostshow3 = itemcostarray[10];
  207.       itemcostshow4 = itemcostarray[11];
  208.       itemcostshow5 = itemcostarray[12];
  209.    }
  210.    if(scrolldragbar._y >= 280)
  211.    {
  212.       shopitemname1 = shopitemnamearray[9];
  213.       shopitemname2 = shopitemnamearray[10];
  214.       shopitemname3 = shopitemnamearray[11];
  215.       shopitemname4 = shopitemnamearray[12];
  216.       shopitemname5 = shopitemnamearray[13];
  217.       itemshowgo1 = 11;
  218.       itemshowgo2 = 12;
  219.       itemshowgo3 = 13;
  220.       itemshowgo4 = 14;
  221.       itemshowgo5 = 15;
  222.       itemdessave1 = shopitemintro[9];
  223.       itemdessave2 = shopitemintro[10];
  224.       itemdessave3 = shopitemintro[11];
  225.       itemdessave4 = shopitemintro[12];
  226.       itemdessave5 = shopitemintro[13];
  227.       itemcostshow1 = itemcostarray[9];
  228.       itemcostshow2 = itemcostarray[10];
  229.       itemcostshow3 = itemcostarray[11];
  230.       itemcostshow4 = itemcostarray[12];
  231.       itemcostshow5 = itemcostarray[13];
  232.    }
  233. }
  234. var shopitemnamearray = new Array();
  235. var itemcostarray = new Array();
  236. var shopitemintro = new Array();
  237. shopitemnamearray[0] = "σÅ»σÅúσÅ»µ¿é";
  238. itemcostarray[0] = 90;
  239. shopitemintro[0] = "σÅ»σÅúσÅ»µ¿éσà¼σÅ╕τÜäΘú▓µûÖ\nHP+90";
  240. shopitemnamearray[1] = "Θ«¬Θ¡Üσ╛íΘú»τ│░";
  241. itemcostarray[1] = 2400;
  242. shopitemintro[1] = "µƒöΦª¬µëïσüÜτÜäΘú»τ│░\nHP+30%,MP+30%";
  243. shopitemnamearray[2] = "τöƒΘ¡Üτëçσú╜σÅ╕";
  244. itemcostarray[2] = 500;
  245. shopitemintro[2] = "µƒöΦª¬µëïσüÜτÜäσú╜σÅ╕\nHP+500";
  246. shopitemnamearray[3] = "Θ«¡Θ¡Üσì╡σú╜σÅ╕";
  247. itemcostarray[3] = 300;
  248. shopitemintro[3] = "µƒöΦª¬µëïσüÜτÜäσú╜σÅ╕\nMP+150";
  249. shopitemnamearray[4] = "Φè▒µ₧¥Σ╕╕";
  250. itemcostarray[4] = 610;
  251. shopitemintro[4] = "µû░Θ««τÜäΦè▒µ₧¥Σ╕╕πÇé\nMP+300";
  252. shopitemnamearray[5] = "µ╡╖Θ««µïëΘ║╡";
  253. itemcostarray[5] = 1000;
  254. shopitemintro[5] = "µëïσ╖ѵïëΘ║╡∩╝îΘ║╡µó¥ΘªÖQµ╗æσ½⌐πÇé\nMP+300 HP+400";
  255. shopitemnamearray[6] = "ΘÜ¿Φ║½Σ╛┐τò╢";
  256. itemcostarray[6] = 1000;
  257. shopitemintro[6] = "µÑ╡σôüτ▒│σÆîσÜ┤Θü╕µÄÆΘ¬¿ΘàìΣ╕èτì¿σ«╢Θå¼µûÖ!OMG!τ£ƒσÑ╜σÉâπÇé\nMP+200 HP+600";
  258. shopitemnamearray[7] = "Φ▒ÜΘ¬¿µïëΘ║╡";
  259. itemcostarray[7] = 6000;
  260. shopitemintro[7] = "τÑ₧µê╢Φ▒¼σÆîµëïσ╖ѵïëΘ║╡∩╝îΣ║║Θûôτ╛Äσæ│σòè~~πÇé\nHP+80%.MP+80%";
  261. shopitemnamearray[8] = "τçÆτâñΣ╕▓";
  262. itemcostarray[8] = 5500;
  263. shopitemintro[8] = "τâñΣ╕╕σ¡Éσèáµÿѵì▓?πÇé\nHP+2000,MP+2000";
  264. shopitemnamearray[9] = "Σ╕ëΦë▓Φè▒µ₧¥Σ╕╕";
  265. itemcostarray[9] = 4000;
  266. shopitemintro[9] = "µû░Θ««τÜäΦè▒µ₧¥Σ╕╕πÇé\nMPσ࿵╗┐";
  267. shopitemnamearray[10] = "µï¢τëîµ╣»";
  268. itemcostarray[10] = 3500;
  269. shopitemintro[10] = "µƒöτà«τÜäµ╣»,ΘªÖσæ│σ¢¢µ║ó.\nHPσ࿵╗┐";
  270. shopitemnamearray[11] = "τÅìτÅáτ┤àΦƒ│";
  271. itemcostarray[11] = 7000;
  272. shopitemintro[11] = "σ╛íτö¿τ┤ÜΦ₧âΦƒ╣ΘàìΣ╕èτ╛Äσæ│τÜäΦ¬┐σæ│µûÖ!\nHP.MPσ࿵╗┐";
  273. shopitemnamearray[12] = "Θ¢₧Φ¢ïΦ▒åΦàÉ";
  274. itemcostarray[12] = 4800;
  275. shopitemintro[12] = "σ░▒µÿ»Θ¢₧Φ¢ïσèáΦ▒åΦàÉσÆ⌐!\nHP50%.MP50%µüóσ╛⌐";
  276. shopitemnamearray[13] = "µ░┤Θñâ";
  277. itemcostarray[13] = 800;
  278. shopitemintro[13] = "Θƒ¡ΦÅ£Φ▒¼Φéëσæ│!\nHP10%.MP10%µüóσ╛⌐";
  279.